package com.sixj.license.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * @Description
 * @Author mwx
 * @Date 2022/6/18
 * @Version V1.0
 */
@RestController
public class IndexController {

    @GetMapping(value = "/")
    public String getServerInfo() {
        String time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime());
        return MessageFormat.format("时间ABC：{0}", time);
    }
}
